/**
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 mo_yq5 (mo_yq5@163.com)
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
*/
package com.vulgarsdk.captcha;

/**
 * 验证码发送接口。通过实现此接口自定义验证发送的具体实现
 *
 * @author mo_yq5
 * @since 2016年1月10日
 */
public interface CaptchaSender {

	/**
	 * 发送验证码
	 * 
	 * @since 2016年1月10日
	 * @param account
	 *            接收账号（也就是要验证的账号名）
	 * @param captcha
	 *            验证码
	 * @param indate
	 *            有效期（单位可为：秒、分、天等，由你们自己的需要约定）
	 * @throws CaptchaException
	 */
	public void send(String account, String captcha, Integer indate)
			throws CaptchaException;

}
